package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.example.demo.RedisTemp;

//@EnableEurekaClient
//@EnableApolloConfig(value = {"cps-yml"})
//@EnableApolloConfig()
//@Configuration 
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		
//		string();
	}

	
	public static void string() {
		String key = "a";
		String value = "hello redis";
		RedisTemp.set(key, value );
		
		System.out.println(RedisTemp.get(key));
		
		RedisTemp.setadd("set-key", "a","b","c","d","e");
		System.out.println(RedisTemp.setGet("set-key"));
		System.out.println(RedisTemp.setDelete("set-key", "a"));
	}
}
